{% extends "main_face_base.html" %}

{% block styles %}
	<link rel="stylesheet" href="static/face.css" type="text/css"/>
	<link rel="stylesheet" href="static/bookcase.css" type="text/css"/>
{% endblock %}

{% block content_block_left %}
	<div>
		<ul>
			<li>
				<p><a href="bookcase">Мой шкаф</a></p>
			</li>
			<li>
				<p><a href="bookcase?select=recommend">Друзья рекомендуют</a></p>
			</li>
			<li>
				<p><a href="bookcase?select=favorite">Избранное друзей</a></p>
			</li>
		</ul>
	</div>
{% endblock %}

{% block document_title %}HOME - Книжный шкаф{% endblock %}

{% block title_center %}<p>Книжный шкаф</p>{% endblock %}

{% block content_block_center %}
	<div {% if right_offset %}style="padding-right:{{right_offset}}px;"{% endif %}>
		<ul>
			{% for lot in shelves %}
			<li>
				<label>{{lot.title}}</label>
				<table>
					<tbody>
						<tr>
							<th>Произведение</th>
							<th>Автор</th>
						</tr>
						{% for work in lot.works %}
						<tr>
							<td><a href="table?view={{work.id}}">{{work.title}}</a></td>
							<td><a href="cabinet?view={{work.author.id}}">{{work.signature}}</a></td>
						</tr>
						{% endfor %}
					</tbody>
				</table>
			</li>
			{% endfor %}
		</ul>
	</div>
{% endblock %}
